USE [GD1C2012]
GO

/****** Object:  Table [SUPERACIDOS].[Rendicion]    Script Date: 06/11/2012 09:25:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [SUPERACIDOS].[Rendicion](
	[Rendicion_Id] [int] IDENTITY(1,1) NOT NULL,
	[Rendicion_ChoferId] [int] NOT NULL,
	[Rendicion_TurnoId] [int] NOT NULL,
	[Rendicion_Fecha] [datetime] NULL,
	[Rendicion_Importe] [numeric](18, 2) NOT NULL,
 CONSTRAINT [PK_Rendicion] PRIMARY KEY CLUSTERED 
(
	[Rendicion_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [SUPERACIDOS].[Rendicion]  WITH CHECK ADD  CONSTRAINT [FK_Rendicion_Chofer] FOREIGN KEY([Rendicion_ChoferId])
REFERENCES [SUPERACIDOS].[Chofer] ([Chofer_Id])
GO

ALTER TABLE [SUPERACIDOS].[Rendicion] CHECK CONSTRAINT [FK_Rendicion_Chofer]
GO

ALTER TABLE [SUPERACIDOS].[Rendicion]  WITH CHECK ADD  CONSTRAINT [FK_Rendicion_Turno] FOREIGN KEY([Rendicion_TurnoId])
REFERENCES [SUPERACIDOS].[Turno] ([Turno_Id])
GO

ALTER TABLE [SUPERACIDOS].[Rendicion] CHECK CONSTRAINT [FK_Rendicion_Turno]
GO

